package com.note.chh.notebook.Api;

import com.note.chh.notebook.R;

/**
 * Created by caihuahui on 2018/1/16.
 */

public class Constant {

//----------------------   开发者模式和正式模式需转换的一些值   ------------------//
    //是否处于开发调试模式，用于控制打印日志的开关
    public static final boolean ISDEBUG = true ;
    //Bugly是否开启debug模式
    public static final boolean Bugly_isDebug = true;


//-----------------------   正常的配置   -------------------------------------//
    //屏幕宽度
//    public static final int designWidth = 1080;
    //闪屏的时间 单位s
    public static final int SPLASH_TIME = 1;
    //sp的名称
    public static String SP_NAME = "chh";
    //打印log日志的名称
    public static final String LOGNAME = "chh";
    //Bugly AppID
    public static final String Bugly_AppID = "b5b391a1de";

    //所有要保存数据的主文件夹
    public static final String saveFolder = "NoteBook";
    //保存音乐专辑图片的位置 - 文件夹
    public static final String imageSaveFolder = saveFolder + "/images";
    //保存绘画板图片的位置
    public static final String drawImageSaveFolder = saveFolder + "/drawImages";
    //美女图片保存的文件夹
    public static final String girlImageSaveFolder = saveFolder + "/girlImages";

    //只获取大于多少kb的音频文件
    public static final long MINSIZE = 540;

    //网络未连接
    public static final String NOTNETWORKCONNECT = "网络未连接，请检查";
    //网络不可用
    public static final String NETWORKNOUSER = "网络不可用";
    //未知错误
    public static final String UNKNOKNERROR = "未知错误,请稍候重试";
    public static final String NoGetLyric = "未匹配到歌词";
    public static final String ErrorLyric = "匹配错误";
    public static final String saveError = "保存失败";

//------------------------    Sp的键   --------------------------------------//
    public static final String KEY_FIRST_SPLASH = "first_splash";    //是否第一次启动
    public static final String KEY_IS_LOGIN = "is_login";            //登录
    public static final String KEY_MUSIC_BG = "music_bg";            //音乐背景图（列表中第几张）


//-------------------------------------------------------------------//
    //请求码
    public static final int ADDNOTE_REQUESTCODE = 100;
    public static final int ADDNOTE_VIDEO_REQUESTCODE = 101;
    public static final int ADDNOTE_MUSIC_REQUESTCODE = 102;
    public static final int EDIT_NOTE_REQUESTCODE = 103;
    public static final int ADD_STROKE_REQUESTCODE = 104;

    //返回码
    public static final int ADDNOTE_RESULTCODE = 200;
    public static final int ADDNOTE_VIDEO_RESULTCODE = 201;
    public static final int ADDNOTE_MUSIC_RESULTCODE = 202;
    public static final int EDIT_NOTE_RESULTCODE = 203;
    public static final int ADD_STROKE_RESULTCODE = 204;




//----------------------------------集合数据---------------------------------------//
    //时间
    public static final String[] items = {"5分钟前","10分钟前","15分钟前","20分钟前","30分钟前","1小时前","1天前","2天前","1周前"};
    //items 集合对应的分钟数
    public static final int[] times = {5,10,15,20,30,60,1440,2880,10080};
    //播放音乐界面背景图
    public static final int[] mbg = {R.mipmap.b_music_bg,R.mipmap.b_music_bg_a,R.mipmap.b_music_bg_b,R.mipmap.b_music_bg_c};
}
